import request from "../utils/request.js"
//提交建议
export function postAdvice(params){
	return request("/proposalAdd","POST",params)
}
//登录
export function login(params){
	return request("/api/webapi/login","POST",params)
}
//注册
export function registration(params){
	return request("/api/webapi/reguser","POST",params)
}
//修改密码
export function updatePassword(params){
	return request("/webapi/updatepwd","POST",params)
}
//修改个人信息
export function updateUser(params){
	return request("/webapi/updateUserinfo","POST",params)
}

// 添加申请接单的请求函数
export function applyAdd(params){
	return request("/applyAdd","POST",params)
}

// 用户提交申请的状态
export function applyStatue(id){
	return request(`/adminapi/ApplyByUserId/${id}`, "GET")
}
//提交跑腿订单
export function orderAdd(params){
	return request("/orderAdd","POST",params)
}
//订单列表
export function getOrderAll(){
	return request("/adminapi/orderAll","get")
}
//我的订单列表
export function getOrderMy(id){
	return request(`/orderUserById/${id}`,"get")
}
//我帮助的订单列表
export function getOrderHelp(id){
	return request(`/orderReceivePersonById/${id}`,"get")
}
//删除订单
export function orderDelete(id){
	return request(`/adminapi/orderDelete/${id}`,"delete")
}
//修改定订单状态
export function orderUpdateState(params){
	return request(`/orderUpdate`,"post",params)
}
// 4轮播图
export function getBanner(){
	return request('/adminapi/bannerSelect','get')
}